# Maintainer: Simon Rupf <simon@rupf.net>
pkgname=py3-flask-caching
_pkgname=Flask-Caching
pkgver=2.0.0
pkgrel=0
pkgdesc="Flask caching support"
url="https://flask-caching.readthedocs.io/"
arch="noarch"
license="BSD-3-Clause"
depends="python3 py3-cachelib py3-flask"
makedepends="py3-build py3-installer py3-pytest py3-setuptools py3-tox py3-wheel"
source="https://files.pythonhosted.org/packages/source/${_pkgname:0:1}/$_pkgname/$_pkgname-$pkgver.tar.gz"
builddir="$srcdir"/$_pkgname-$pkgver

build() {
	python3 -m build --wheel --no-isolation
}

check() {
	tox -e pypy3
}

package() {
	python3 -m installer --destdir="$pkgdir" dist/*.whl
}

sha512sums="
7dc364182b74c426745b8f264df295ce59e4f1f729a3c680fcf707b299effd2829650409da55049fa307b9c66475117948524b3e9b891069b3fd0c2815d96c8c  Flask-Caching-2.0.0.tar.gz
"
